package com.jy.api.dao;

import com.jy.api.domain.CouponCensus;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by xiaohua on 2019/4/11.
 */
public interface CouponCensusDao extends CrudRepository<CouponCensus,Integer>{





    CouponCensus findByCouponIdAndBeginTimeLessThanEqualAndEndTimeGreaterThanEqual(String couponId,Date begin,Date end);

   List<CouponCensus> findByCouponIdInAndAddTimeBetween(List<String> couponId, Date begin, Date end);


}
